{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo web_url('app/plugins');}">应用插件库</a></li>
</ul>
<div class="app-content">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="product-list">
            {loop $category $ck $cate}
                {if !empty($cate['plugins'])}
                <div class="data-box">
                    <div class="data-hd">
                        <h3>{$cate['name']}</h3>
                    </div>
                    <div class="data-bd">
                        <div class="list-view">
                            <ul class="clr">
                                {loop $cate['plugins'] $pk $plug}
                                <li status="1" pid="2">
                                    <a href="{$plug['cover']}" target="{$plug['target']}">
                                        {if strexists($plug['thumb'], 'addons/'.MODULE_NAME.'/plugin') || strexists($plug['thumb'], 'addons/weliam_merchant/plugin')}
                                        <span class="icon" style="background:{$cate['color']}">
                                                <img src="{$plug['thumb']}" alt="">
                                            </span>
                                        {else}
                                        <span class="icon" style="background-image:url({php echo tomedia($plug['thumb'])});background-repeat:no-repeat; background-size:100% 100%;-moz-background-size:100% 100%;"></span>
                                        {/if}
                                        <h4 class="title">{$plug['name']}</h4>
                                        <p class="desc">{$plug['des']}</p>
                                    </a>
                                </li>
                                {/loop}
                            </ul>
                        </div>
                    </div>
                </div>
                {/if}
            {/loop}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}